package ThreadTest;

public class Dome14 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()-> {
            for (int i = 0; i < 5; i++) {
                System.out.println(Thread.currentThread().getName()+"线程启动");
            }
        },"t1");
        Thread t2 = new Thread(()-> {
            for (int i = 0; i < 5; i++) {
                System.out.println(Thread.currentThread().getName()+"线程启动");
            }
        },"t2");
        Thread t3 = new Thread(()-> {
            for (int i = 0; i < 5; i++) {
                System.out.println(Thread.currentThread().getName()+"线程启动");
            }
        },"t3");
        t1.start();
        t2.start();
        t3.start();
    }
}
